package com.extendsdemo2;

/**
 * @Auther: shiquan
 * @Date: 2024/10/20 - 10 - 20 -16:45
 */
public class Manager extends Employee{

    private double bouns;

    //空参构造

    public Manager() {

    }

    public Manager(String id, String name, double salary, double bouns) {
        super(id, name, salary);
        this.bouns = bouns;
    }

    public double getBouns() {
        return bouns;
    }

    public void setBouns(double bouns) {
        this.bouns = bouns;
    }

    @Override  //重新写方法
    public void work(){
        System.out.println("管理其他人");
    }
}
